import mutations from './mutations'
import * as actions from './actions'
import * as getters from './getters'

const state = {
  editorElement: {}, // 正在编辑的元素
  editorPage: {
    elements: []
  }, // 正在编辑的页面
  themeList: [], // 用户所有主题列表
  editorTheme: {
    title: '',
    description: '',
    canvasHeight: 504
  }, // 正在编辑的主题
  picList: [], // 图片列表
  videoList: [], // 视频列表
  picTotal: 0,
  videoTotal: 0,
  musicList: [],  // 音乐列表
  musicTotal: 0,
  textList: [],  // 文本列表
  textTotal: 0,
  animList: [],  // 动画列表
  animTotal: 0,
  useMaterialList: [],
  res_code: 0,
  res_msg: '',
  pageScale: 1
}

export default{
  state,
  getters,
  actions,
  mutations
}
